import request from '@/utils/request'

/**
 * 按门店统计销售额
 * @param query
 * @returns {*}
 */
export function saleByDay(query) {
    console.log(query)
    return request({
        url: '/report/saleByDay',
        method: 'get',
        params: query
    })
}

/**
 * 按产品类型统计销售额
 * @param query
 * @returns {*}
 */
export function saleByItemType(query) {
    return request({
        url: '/report/saleByItemType',
        method: 'get',
        params: query
    })
}

/**
 * 按销售员统计销售额
 * @param query
 * @returns {*}
 */
export function saleBySalesman(query) {
    return request({
        url: '/report/saleBySalesman',
        method: 'get',
        params: query
    })
}

/**
 * 按销售员统计销售额
 * @param query
 * @returns {*}
 */
export function saleByItem(query) {
    return request({
        url: '/report/saleByItem',
        method: 'get',
        params: query
    })
}
